package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("abnormal_attendance_apply")
@ApiModel(value = "异常情况出勤签卡申请单")
public class AbnormalAttendanceApply {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("工号")
    private String employeeId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("日期")
    private LocalDate date;

    @ApiModelProperty("班组")
    private String team;

    @ApiModelProperty("上午")
    private String morning;

    @ApiModelProperty("下午")
    private String afternoon;

    @ApiModelProperty("加班")
    private String overtime;

    @ApiModelProperty("异常情况")
    private String abnormalSituation;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("制表人")
    private String tabledBy;

    @ApiModelProperty("审核人")
    private String reviewedBy;

    @ApiModelProperty("批准人")
    private String approvedBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}